<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  </head>
  <body>
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'north',border:false,split:false" style="overflow:hidden">        
        <form id="query-form2" class="search_form clearfix">
        	<dl>
				<dt>用户帐号：</dt>
				<dd>
					<input name="identity" id="identity" type="text" class="txt" maxlength="32"/>
				</dd>
			</dl>
			<dl>
				<dt>社区：</dt>
				<dd>
					<input name="communityName" id="communityName" type="text" class="txt" maxlength="32"/>
				</dd>
			</dl>
			<dl>
				<dt>状态：</dt>
				<dd>
                	<select name="status">
						<option value="">请选择</option>
						<option value="1">正常</option>
						<option value="2">暂停</option>
					</select>
				</dd>
			</dl>
            <p class="search_form_btn">
            	<input type="button" value="搜索" class="icon_serach" onclick="query()" /></p>
        </form>
    </div>    
	<div data-options="region:'center',border:false">
  		<table id="datagrid2">
			<thead>
				<tr>
					<th data-options="field:'identity',width:100,align:'center'">帐号</th>
					<th data-options="field:'userNick',width:80,align:'center'">昵称</th>
					<th data-options="field:'strRegisterAt',width:150,align:'center'">注册时间</th>
					<th data-options="field:'communityName',width:100,align:'center'">社区</th>
					<th data-options="field:'strStatus',width:80,align:'center'">状态</th>
					<th data-options="field:'strAuditStatus',width:80,align:'center'">审核状态</th>
					<th data-options="field:'hasSuperPower',width:60,align:'center',formatter:formatHasSuperPower">超级权限</th>
					<th data-options="field:'strAuditAt',width:150,align:'center'">审核时间</th>
				</tr>
			</thead>
		</table>
    </div>    
</div>
<script type="text/javascript">
	easyui.util.initDatagrid('#datagrid2',{
		singleSelect:false,
		url:'${pageContext.request.contextPath}/send/deliveryUser/choose?parentId=0'
	});
	
	function query() {
		if(!$('#query-form2').form('validate')) return;
		var data=$('#query-form2').form('jsonObject');
		$('#datagrid2').datagrid('load',data);
		//if(datagrid=='datagrid') $('#query-dialog').dialog('close');
	}
	
	function formatHasSuperPower(value,row,index) {
		if (row.hasSuperPower == 1) {
			return '是';
		}
		return '否';
	}
</script>
  </body>
</html>